package com.example.design.shejimoshi.action.strategy.spring01.service.impl;

import com.example.design.shejimoshi.action.strategy.spring01.dto.MessageExecutorDTO;
import com.example.design.shejimoshi.action.strategy.spring01.service.MessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service("messageService")
public class MessageServiceImpl implements MessageService {

    @Override
    public MessageExecutorDTO getById(Long id) {
        MessageExecutorDTO executorDTO = new MessageExecutorDTO();
        executorDTO.setExecutorType("messageService");
        executorDTO.setId(1L);
        executorDTO.setName("666");
        return executorDTO;
    }


    @Override
    public Boolean executor(MessageExecutorDTO messageExecutorDTO, Object trggerDetail) {
        log.info("发送短信啦");
        return null;
    }
}
